﻿#region License Information

/* •——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————•
   | Copyright Aptillon, Inc.                                                                                        |
   | This file is part of the CKS:API project - cksapi.codeplex.com                                                       |
   | Usage, modification and distribution subject to the license terms available here: http://cksapi.codeplex.com/license |
   |                                                                                                                      |
   | Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,             |
   | either express or implied.                                                                                           |
   |                                                                                                                      |
   | THIS MESSAGE MAY NOT BE LEGALLY REMOVED                                                                              |
   •——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————• */

#endregion


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CKS.API.Contracts;

namespace CKS.API.Logging
{
    public class CKSVariableWrapper
    {
        internal string VariableName { get; private set; }
        internal object Variable { get; private set; }
        internal List<string> PropertiesToDump { get; private set; }
        public CKSVariableWrapper(string variablename, object variable, params string[] propertiesToDump)
        {
            VariableName = variablename;
            Variable = variable;
            if (Check.ThatIsNull(PropertiesToDump))
            {
                PropertiesToDump = new List<string>();
            }
            Array.ForEach(propertiesToDump, PropertiesToDump.Add);


        }

    }
}
